/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.caresms.service.persistence;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.util.ReferenceRegistry;

/**
 * @author cc
 */
public class Keyword_MasterFinderUtil {
	public static java.util.List<com.caresms.model.Keyword_Master> findBycat(
		long cid) throws com.liferay.portal.SystemException {
		return getFinder().findBycat(cid);
	}

	public static long getByKeyname(java.lang.String keyname)
		throws com.liferay.portal.SystemException {
		return getFinder().getByKeyname(keyname);
	}

	public static java.util.List<com.caresms.model.Sms_Master> findBykeyid(
		long kid) throws com.liferay.portal.SystemException {
		return getFinder().findBykeyid(kid);
	}

	public static java.util.List<com.caresms.model.Sms_Master> findSmsBycatid(
		long cid) throws com.liferay.portal.SystemException {
		return getFinder().findSmsBycatid(cid);
	}

	public static int countwhitespace(java.lang.String keyname) {
		return getFinder().countwhitespace(keyname);
	}

	public static Keyword_MasterFinder getFinder() {
		if (_finder == null) {
			_finder = (Keyword_MasterFinder)PortletBeanLocatorUtil.locate(com.caresms.service.ClpSerializer.getServletContextName(),
					Keyword_MasterFinder.class.getName());

			ReferenceRegistry.registerReference(Keyword_MasterFinderUtil.class,
				"_finder");
		}

		return _finder;
	}

	public void setFinder(Keyword_MasterFinder finder) {
		_finder = finder;

		ReferenceRegistry.registerReference(Keyword_MasterFinderUtil.class,
			"_finder");
	}

	private static Keyword_MasterFinder _finder;
}